package com.seeyon.apps.kk;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.seeyon.apps.kk.manager.KkConfigManager;
import com.seeyon.ctp.common.AbstractSystemInitializer;
import com.seeyon.kk.utils.ValueUtils;

public class KkPluginInitializer extends AbstractSystemInitializer {
	private static Log log = LogFactory.getLog(KkPluginInitializer.class);
    private KkConfigManager  kkConfigManager;	
	
	public KkConfigManager getKkConfigManager() {
		return kkConfigManager;
	}

	public void setKkConfigManager(KkConfigManager kkConfigManager) {
		this.kkConfigManager = kkConfigManager;
	}

	@Override
	public void initialize() {
		log.info("上海区客开插件启动");
		super.initialize();
		//系统启动的时候 将配置需要的内容 设置到静态变量
		ValueUtils.setConfig(kkConfigManager.createKkConfig());
	}

	@Override
	public void destroy() {
		log.info("上海区客开插件销毁");
		super.destroy();
	}

}